package com.menny.android.ongoingweather;

import java.util.ArrayList;

/**
 * Combines one WeatherCurrentCondition with a List of
 * WeatherForecastConditions.
 * http://www.anddev.org/android_weather_forecast_-_google_weather_api_-_full_source-t361.html
 */
public class WeatherSet {
     
     // ===========================================================
     // Fields
     // ===========================================================

     private WeatherCurrentCondition myCurrentCondition = null;
     private ArrayList<WeatherForecastCondition> myForecastConditions =
          new ArrayList<WeatherForecastCondition>(4);

     // ===========================================================
     // Getter & Setter
     // ===========================================================

     public WeatherCurrentCondition getWeatherCurrentCondition() {
          return myCurrentCondition;
     }

     public void setWeatherCurrentCondition(
               WeatherCurrentCondition myCurrentWeather) {
          this.myCurrentCondition = myCurrentWeather;
     }

     public ArrayList<WeatherForecastCondition> getWeatherForecastConditions() {
          return this.myForecastConditions;
     }

     public WeatherForecastCondition getLastWeatherForecastCondition() {
          return this.myForecastConditions
                    .get(this.myForecastConditions.size() - 1);
     }
}

